package com.yuanqiao.insight.modules.notice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanqiao.insight.modules.notice.entity.SysNoticeExtend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: 通知配置附加字段
 * @Author: jeecg-boot
 * @Date:   2021-05-28
 * @Version: V1.0
 */
@Mapper
@Component
public interface SysNoticeExtendMapper extends BaseMapper<SysNoticeExtend> {

    List<SysNoticeExtend > findExtendAllByConfigId(@Param("noticeConfigId") String noticeConfigId, @Param("type") String type);

    void delByConfigId(@Param("configId") String configId);

    List<SysNoticeExtend>findExtendByConfigId(@Param("configId") String configId);


    SysNoticeExtend findExtendByConfigIdReturnOne(@Param("configId") String configId);

    List<String> findOpenIdByList (@Param("list")List<String> list);

    List<String> findUserNameByList(@Param("list")List<String> list);

    List<String> findConfigId ();

    List<SysNoticeExtend> getShengshitongConfig();

}
